package cn.cms.chuangjia.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * menu对象 c_menu
 * 
 * //@author ruoyi
 * //@date 2024-01-18
 */
public class Menu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    //@Excel(name = "编号")
    private Integer id;

    /** 标题 */
    //@Excel(name = "标题")
    private String title;

    /** 上级编号 */
    //@Excel(name = "上级编号")
    private Integer parentid;

    private List<Menu> childs=new ArrayList<>(0);

    /** 类别 */
    //@Excel(name = "类别")
    private String stype;

    /** 链接地址 */
    //@Excel(name = "链接地址")
    private String linkurl;

    /** 发布人 */
    //@Excel(name = "发布人")
    private String poster;

    /** 发布时间 */
    //@JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postdate;

    /** 是否可用 */
    //@Excel(name = "是否可用")
    private Boolean isvalid;

    /** 内容 */
    //@Excel(name = "内容")
    private String content;

    /** 顺序 */
    //@Excel(name = "顺序")
    private Integer morder;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public List<Menu> getChilds() {
        return childs;
    }

    public void setChilds(List<Menu> childs) {
        this.childs = childs;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setParentid(Integer parentid) 
    {
        this.parentid = parentid;
    }

    public Integer getParentid() 
    {
        return parentid;
    }
    public void setStype(String stype) 
    {
        this.stype = stype;
    }

    public String getStype() 
    {
        return stype;
    }
    public void setLinkurl(String linkurl) 
    {
        this.linkurl = linkurl;
    }

    public String getLinkurl() 
    {
        return linkurl;
    }
    public void setPoster(String poster) 
    {
        this.poster = poster;
    }

    public String getPoster() 
    {
        return poster;
    }
    public void setPostdate(Date postdate) 
    {
        this.postdate = postdate;
    }

    public Date getPostdate() 
    {
        return postdate;
    }
    public void setIsvalid(Boolean isvalid) 
    {
        this.isvalid = isvalid;
    }

    public Boolean getIsvalid() 
    {
        return isvalid;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setMorder(Integer morder) 
    {
        this.morder = morder;
    }

    public Integer getMorder() 
    {
        return morder;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", parentid=" + parentid +
                ", stype='" + stype + '\'' +
                ", linkurl='" + linkurl + '\'' +
                ", poster='" + poster + '\'' +
                ", postdate=" + postdate +
                ", isvalid=" + isvalid +
                ", content='" + content + '\'' +
                ", morder=" + morder +
                '}';
    }
}
